<include target="_header.html" />

<div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
	<p>{$XE_VALIDATOR_MESSAGE}</p>
</div>

<form ruleset="insertRecruit" class="form" action="./" method="post" enctype="multipart/form-data" class="form">
	<input type="hidden" name="module" value="recruit" />
	<input type="hidden" name="act" value="procRecruitAdminCreation" />
	<input type="hidden" name="page" value="{$page}" />
	<input type="hidden" name="module_srl" value="{$module_info->module_srl}" />
	<input cond="$mid || $module_srl" type="hidden" name="success_return_url" value="{getRequestUriByServerEnviroment()}" />

	<ul>
		<li cond="$logged_info->is_admin == 'Y'">
			<p class="q"><label for="recruitName">{$lang->mid}</label></p>
			<p class="a"><input type="text" name="recruitName" id="recruitName" value="{$module_info->mid}" />
			<p class="desc">{$lang->about_mid}</p>
		</li>
		<li>
			<p class="q"><label for="module_category_srl">{$lang->module_category}</label></p>
			<p class="a">
				<select name="module_category_srl" id="module_category_srl">
					<option value="0">{$lang->notuse}</option>
					<option loop="$module_category => $key, $val" value="{$key}" selected="selected"|cond="$module_info->module_category_srl == $key">{$val->title}</option>
				</select>
			</p>
			<p class="desc">{$lang->about_module_category}</p>
		</li>
		<li>
			<p class="q"><label for="browser_title">{$lang->browser_title}</label></p>
			<p class="a multiLangEdit">
				{@$use_multilang = true}
				<input type="hidden" name="browser_title" value="<!--@if(strpos($module_info->browser_title, '$user_lang->') === false)-->{$module_info->browser_title}<!--@else-->{htmlspecialchars($module_info->browser_title)}<!--@end-->" class="vLang" />
				<input type="text" id="browser_title" value="{$module_info->browser_title}" class="vLang" />
				<span class="desc"><a href="#langEdit" class="editUserLang tgAnchor">{$lang->cmd_set_multilingual}</a></span>
			</p>
			<p class="desc">{$lang->about_browser_title}</p>
		</li>
		<li>
			<p class="q"><label for="layout_srl">{$lang->layout}</label></p>
			<p class="a">
				<select name="layout_srl" id="layout_srl">
					<option value="0">{$lang->notuse}</option>
					<option loop="$layout_list => $key, $val" value="{$val->layout_srl}" selected="selected"|cond="$module_info->layout_srl== $val->layout_srl">{$val->title} ({$val->layout})</option>
				</select>
			</p>
			<p class="desc">{$lang->about_layout}</p>
		</li>
		<li>
			<p class="q"><label for="skin">{$lang->skin}</label></p>
			<p class="a">
				<select name="skin" id="skin">
					<option loop="$skin_list=> $key, $val" value="{$key}" selected="selected"|cond="$module_info->skin== $key || (!$module_info->skin && $key=='recruit')">{$val->title}</option>
				</select>
			</p>
			<p class="desc">{$lang->about_skin}</p>
		</li>
		<li>
			<p class="q">{$lang->use_category}</p>
			<p class="a"><input type="checkbox" name="use_category" id="use_category" value="Y" checked="checked"|cond="$module_info->use_category == 'Y'" /> <label for="use_category">{$lang->about_use_category}</label></p>
		</li>
		<li>
			<p class="q">{$lang->use_location}</p>
			<p class="a"><input type="checkbox" name="use_location" id="use_location" value="Y" checked="checked"|cond="$module_info->use_location == 'Y'" /> <label for="use_location">{$lang->about_use_location}</label></p>
		</li>
		<li>
			<p class="q"><label for="order_target">{$lang->order_target}</label></p>
			<p class="a">
				<select name="order_target" id="order_target">
					<option loop="$order_target=> $key, $val" value="{$key}" selected="selected"|cond="$module_info->order_target== $key">{$val}</option>
				</select>
			</p>
		</li>
		<li>
			<p class="q"><label for="order_type">{$lang->order_type}</label></p>
			<p class="a">
				<select name="order_type" id="order_type">
					<option value="asc" selected="selected"|cond="$module_info->order_type != 'desc'">{$lang->order_asc}</option>
					<option value="desc" selected="selected"|cond="$module_info->order_type == 'desc'">{$lang->order_desc}</option>
				</select>
			</p>
		</li>
		<li>
			<p class="q"><label for="list_count">{$lang->list_count}</label></p>
			<p class="a"><input type="text" name="list_count" id="list_count" value="{$module_info->list_count?$module_info->list_count:20}" /></p>
			<p class="desc">{$lang->about_list_count}</p>
		</li>
		<li>
			<p class="q"><label for="page_count">{$lang->page_count}</label></p>
			<p class="a"><input type="text" name="page_count" id="page_count" value="{$module_info->page_count?$module_info->page_count:20}" /></p>
			<p class="desc">{$lang->about_page_count}</p>
		</li>
		<li>
			<p class="q">{$lang->use_notification}</p>
			<p class="a"><input type="checkbox" name="use_notification" id="use_notification" value="Y" checked="checked"|cond="$module_info->use_notification == 'Y'" /> <label for="use_category">{$lang->about_use_notification}</label></p>
		</li>
		<li>
			<p class="q"><label for="contact_mail">{$lang->default_contact_mail}</label></p>
			<p class="a"><input type="text" name="contact_mail" id="contact_mail" value="{$module_info->contact_mail?$module_info->contact_mail:$logged_info->email_address}" /></p>
			<p class="desc">{$lang->about_contact_mail}</p>
		</li>
		<li>
			<p class="q"><label for="recruit_title">{$lang->recruit_title}</label></p>
			<p class="a"><input type="text" name="recruit_title" id="recruit_title" value="{$module_info->recruit_title}" /></p>
			<p class="desc">{$lang->about_admin_title}</p>
		</li>
		<li>
			<p class="q"><label for="description">{$lang->description}</label></p>
			<p class="a"><textarea name="description" id="description">{htmlspecialchars($module_info->description)}</textarea></p>
			<p class="desc">{$lang->about_description}</p>
		</li>
	</ul>

	<div class="btnArea">
		<span class="btn"><input type="submit" value="{$lang->cmd_registration}" /></span>
	</div>
	<include target="../../module/tpl/include.multilang.html" />
	<include target="../../module/tpl/include.multilang.textarea.html" />
</form>
<include target="_foot.html" />